package com.aspose.cells;

import java.util.Iterator;

class ziz {
   String a;
   private zja c;
   byte[] b;
   private zor d;
   private int e;
   private boolean f = false;
   private boolean g = false;
   private Line h;
   private boolean i = false;
   private Line j;
   private boolean k = false;
   private Line l;
   private boolean m = false;
   private DropBars n;
   private DropBars o;
   private boolean p;
   private int q = 150;
   private int r;
   private int s = 0;
   private int t = 75;
   private int u = 0;
   private boolean v = true;
   private double w = 1.0D;
   private int x = 100;
   private int y = 0;
   private boolean z = false;
   private int A = 50;
   private boolean B = false;
   private boolean C = true;
   private boolean D = false;
   private Line E = null;
   private ShapePropertyCollection F;
   private ShapePropertyCollection G;
   private ShapePropertyCollection H;
   private ShapePropertyCollection I;

   zja a() {
      return this.c;
   }

   ziz(zja var1, int var2, boolean var3) {
      this.c = var1;
      this.e = var2;
      this.f = var3;
      this.b();
   }

   void b() {
      this.c();
      this.W();
   }

   void c() {
      switch(this.e) {
      case 7:
      case 8:
      case 10:
      case 11:
      case 15:
      case 16:
      case 19:
      case 20:
      case 22:
      case 23:
      case 25:
      case 26:
      case 29:
      case 30:
      case 32:
      case 33:
      case 51:
      case 52:
      case 54:
      case 55:
         this.s = 100;
      case 9:
      case 12:
      case 13:
      case 14:
      case 17:
      case 18:
      case 21:
      case 24:
      case 27:
      case 28:
      case 31:
      case 34:
      case 37:
      case 38:
      case 39:
      case 40:
      case 41:
      case 42:
      case 43:
      case 50:
      case 53:
      default:
         break;
      case 35:
      case 36:
         this.p = true;
         this.D = true;
         break;
      case 44:
      case 45:
      case 47:
      case 48:
         this.p = true;
         this.D = true;
         this.A = 0;
         break;
      case 46:
      case 49:
         this.q = 100;
         this.i = true;
         this.p = true;
         this.D = true;
         this.A = 0;
      }

   }

   zor d() {
      return this.d;
   }

   void a(zor var1) {
      this.d = var1;
   }

   zor e() {
      return this.d;
   }

   private void W() {
      switch(this.e) {
      case 13:
      case 21:
      case 22:
      case 23:
      case 24:
      case 25:
      case 26:
      case 27:
      case 28:
      case 29:
      case 30:
      case 31:
      case 32:
      case 33:
      case 34:
      case 36:
      case 37:
      case 38:
      case 39:
      case 44:
      case 46:
      case 47:
      case 48:
      case 49:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 57:
      case 60:
      case 61:
      case 62:
      case 64:
         this.d = new zor(this);
         this.d.s();
         break;
      case 14:
      case 15:
      case 16:
      case 17:
      case 18:
      case 19:
      case 20:
      case 35:
      case 40:
      case 41:
      case 42:
      case 43:
      case 45:
      case 58:
      case 59:
      case 63:
      default:
         this.d = null;
      }

   }

   ziz(zja var1) {
      this.c = var1;
   }

   void a(ziz var1, CopyOptions var2) {
      this.e = var1.e;
      this.f = var1.f;
      this.r = var1.r;
      this.q = var1.q;
      this.p = var1.p;
      this.s = var1.s;
      this.f = var1.f;
      this.A = var1.A;
      this.B = var1.B;
      this.k = var1.k;
      this.C = var1.C;
      this.z = var1.z;
      this.x = var1.x;
      this.v = var1.v;
      this.t = var1.t;
      this.y = var1.y;
      this.u = var1.u;
      this.w = var1.w;
      if (this.k && var1.l != null) {
         this.l = new Line(this.c.a(), this);
         this.l.a(var1.l);
      }

      this.g = var1.g;
      if (this.g && var1.h != null) {
         this.h = new Line(this.c.a(), this);
         this.h.a(var1.h);
      }

      this.i = var1.i;
      if (this.i && var1.j != null) {
         this.j = new Line(this.c.a(), this);
         this.j.a(var1.j);
      }

      this.D = var1.D;
      if (this.D && var1.E != null) {
         this.E = new Line(this.c.a(), this);
         this.E.a(var1.E);
      }

      this.m = var1.m;
      if (this.m) {
         if (var1.n != null) {
            this.n = new DropBars(this.c.a());
            this.n.a(var1.n, var2);
         }

         if (var1.o != null) {
            this.o = new DropBars(this.c.a());
            this.o.a(var1.o, var2);
         }
      }

      if (var1.d != null) {
         if (this.d == null) {
            this.d = new zor(this);
         }

         this.d.a(var1.d, var2);
      }

      if (var1.F != null) {
         this.F = new ShapePropertyCollection(this.c.a(), this, 12);
         this.F.a(var1.F, var2);
      }

      if (var1.G != null) {
         this.G = new ShapePropertyCollection(this.c.a(), this, 13);
         this.G.a(var1.G, var2);
      }

      if (var1.H != null) {
         this.H = new ShapePropertyCollection(this.c.a(), this, 14);
         this.H.a(var1.H, var2);
      }

      if (var1.I != null) {
         this.I = new ShapePropertyCollection(this.c.a(), this, 15);
         this.I.a(var1.I, var2);
      }

   }

   Marker f() {
      return this.d == null ? null : this.d.k();
   }

   Line g() {
      return this.d == null ? null : this.d.g();
   }

   Area h() {
      return this.d == null ? null : this.d.h();
   }

   zjc i() {
      return this.d == null ? null : this.d.i();
   }

   int j() {
      return this.e;
   }

   void a(int var1) {
      if (this.e != var1) {
         this.e = var1;
         this.b();
      }
   }

   void b(int var1) {
      this.e = var1;
   }

   int k() {
      for(int var1 = 0; var1 < this.c.getCount(); ++var1) {
         if (this == this.c.a(var1)) {
            return var1;
         }
      }

      throw new CellsException(0, "The chart type is not in this chart");
   }

   int l() {
      int var1 = 0;
      Iterator var2 = this.c.a().getNSeries().iterator();

      while(var2.hasNext()) {
         Series var3 = (Series)var2.next();
         if (var3.s() == this) {
            ++var1;
         }
      }

      return var1;
   }

   public boolean m() {
      return this.f;
   }

   public void a(boolean var1) {
      this.f = var1;
   }

   public boolean n() {
      return ChartCollection.n(this.e) ? this.g : false;
   }

   public void b(boolean var1) {
      if (ChartCollection.n(this.e)) {
         this.g = var1;
      }

   }

   void c(boolean var1) {
      this.g = var1;
   }

   public Line o() {
      if (this.h == null) {
         this.h = new Line(this.c.a(), this);
      }

      return this.h;
   }

   public boolean p() {
      switch(this.e) {
      case 7:
      case 8:
      case 15:
      case 16:
      case 46:
      case 49:
         return this.i;
      default:
         return false;
      }
   }

   public void d(boolean var1) {
      switch(this.e) {
      case 7:
      case 8:
      case 15:
      case 16:
      case 46:
      case 49:
         this.i = var1;
         return;
      default:
      }
   }

   void e(boolean var1) {
      this.i = var1;
   }

   public Line q() {
      return this.j == null ? (this.j = new Line(this.c.a(), this)) : this.j;
   }

   public boolean r() {
      return !ChartCollection.n(this.e) && !ChartCollection.p(this.e) ? false : this.k;
   }

   public void f(boolean var1) {
      if (ChartCollection.n(this.e) || ChartCollection.p(this.e)) {
         this.k = var1;
      }

   }

   void g(boolean var1) {
      this.k = var1;
   }

   public Line s() {
      return this.l == null ? (this.l = new Line(this.c.a(), this)) : this.l;
   }

   public boolean t() {
      return !ChartCollection.n(this.e) ? false : this.m;
   }

   public void h(boolean var1) {
      if (ChartCollection.n(this.e)) {
         this.m = var1;
      }
   }

   void i(boolean var1) {
      this.m = var1;
   }

   DropBars u() {
      if (this.n == null) {
         this.n = new DropBars(this.c.a());
      }

      return this.n;
   }

   public DropBars v() {
      if (this.o == null) {
         this.o = new DropBars(this.c.a());
      }

      return this.o;
   }

   DropBars w() {
      return this.n;
   }

   DropBars x() {
      return this.o;
   }

   public boolean y() {
      return this.p;
   }

   public void j(boolean var1) {
      this.p = var1;
   }

   public int z() {
      return this.q;
   }

   public void c(int var1) {
      if (var1 >= 0 && var1 <= 500) {
         this.q = var1;
      } else {
         throw new IllegalArgumentException("First slice angle should be degree 0 to 500.");
      }
   }

   public int A() {
      return this.r;
   }

   public void d(int var1) {
      if (var1 >= 0 && var1 <= 360) {
         this.r = var1;
      } else {
         throw new IllegalArgumentException("First slice angle should be degree 0 to 360.");
      }
   }

   public int B() {
      return this.s;
   }

   public void e(int var1) {
      if (var1 >= -100 && var1 <= 100) {
         this.s = var1;
      } else {
         throw new CellsException(0, "Invalid over lap: it must be between -100 and 100.");
      }
   }

   public int C() {
      return this.t;
   }

   public void f(int var1) {
      if (var1 >= 5 && var1 <= 200) {
         this.t = var1;
      } else {
         throw new CellsException(0, "Invalid size of the secondary section: it must be between 5 and 200.");
      }
   }

   public int D() {
      return this.u;
   }

   public void g(int var1) {
      this.u = var1;
   }

   public double E() {
      return this.w;
   }

   public void a(double var1) {
      this.w = var1;
      this.v = false;
   }

   boolean F() {
      return this.v;
   }

   void k(boolean var1) {
      this.v = var1;
   }

   public int G() {
      return this.x;
   }

   public void h(int var1) {
      if (var1 >= 0 && var1 <= 300) {
         this.x = var1;
      } else {
         throw new IllegalArgumentException("Invalid bubble scale : it must be between 0 and 300.");
      }
   }

   public int H() {
      return this.y;
   }

   public void i(int var1) {
      this.y = var1;
   }

   public boolean I() {
      return this.z;
   }

   public void l(boolean var1) {
      this.z = var1;
   }

   public int J() {
      return this.A;
   }

   public void j(int var1) {
      if (var1 == 0 || var1 >= 10 && var1 <= 90) {
         this.A = var1;
      } else {
         throw new CellsException(0, "Invalid hole size : it must be between 10 and 90");
      }
   }

   boolean K() {
      return this.B;
   }

   void m(boolean var1) {
      this.B = var1;
   }

   public boolean L() {
      return this.C;
   }

   public void n(boolean var1) {
      this.C = var1;
   }

   boolean M() {
      return this.D;
   }

   void o(boolean var1) {
      this.D = var1;
   }

   Line N() {
      return this.E == null ? (this.E = new Line(this.c.a(), this)) : this.E;
   }

   Line O() {
      return this.E;
   }

   Line P() {
      return this.l;
   }

   Line Q() {
      return this.h;
   }

   Line R() {
      return this.j;
   }

   ShapePropertyCollection S() {
      if (this.F == null) {
         this.F = new ShapePropertyCollection(this.c.a(), this, 12);
      }

      return this.F;
   }

   ShapePropertyCollection T() {
      if (this.G == null) {
         this.G = new ShapePropertyCollection(this.c.a(), this, 13);
      }

      return this.G;
   }

   ShapePropertyCollection U() {
      if (this.H == null) {
         this.H = new ShapePropertyCollection(this.c.a(), this, 14);
      }

      return this.H;
   }

   ShapePropertyCollection V() {
      if (this.I == null) {
         this.I = new ShapePropertyCollection(this.c.a(), this, 15);
      }

      return this.I;
   }
}
